//
//  CouponCheckCell.m
//  HAODE
//
//  Created by panquanReabam.com on 16/5/23.
//  Copyright © 2016年 reabam.com. All rights reserved.
//

#import "CouponCheckCell.h"

@implementation CouponCheckCell

-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        
        [self createView];
    }
    
    return self;
    
}
-(void)createView
{
    
   _colorPieceView=[[UIView alloc]initWithFrame:CGRectMake(10, 10, 120, 120)];
    _colorPieceView.backgroundColor=[UIColor colorWithRed:109/255.0 green:168/255.0 blue:33/255.0 alpha:1.0];
    [self addSubview:_colorPieceView];
   _colorPieceView1=[[UIView alloc]initWithFrame:CGRectMake(_colorPieceView.right, 10, ScreenWidth-140, 120)];
    _colorPieceView1.backgroundColor=luseColor;
    [self addSubview:_colorPieceView1];
    _price=[[UILabel alloc]initWithFrame:CGRectMake(10, 10, 120, 120)];
    _price.font=[UIFont boldSystemFontOfSize:42];
    _price.textColor=[UIColor whiteColor];
    _price.textAlignment=NSTextAlignmentCenter;
    [self addSubview:_price];
    _qty=[[UILabel alloc]initWithFrame:CGRectMake(10, 105, 120, 12)];
    _qty.font=[UIFont boldSystemFontOfSize:9];
    _qty.textColor=[UIColor whiteColor];
    _qty.alpha=0.5;
    _qty.textAlignment=NSTextAlignmentCenter;
    [self addSubview:_qty];
    _title=[[UILabel alloc]initWithFrame:CGRectMake(ScreenWidth-200, 10+43, 150, 16)];
    _title.font=[UIFont boldSystemFontOfSize:16];
    _title.textColor=[UIColor whiteColor];
    _title.textAlignment=NSTextAlignmentRight;
    [self addSubview:_title];
    _useLimitAmt=[[UILabel alloc]initWithFrame:CGRectMake(ScreenWidth-220, 10+43+16+6, 170, 16)];
    _useLimitAmt.font=[UIFont boldSystemFontOfSize:14];
    _useLimitAmt.textColor=[UIColor whiteColor];
    _useLimitAmt.alpha=0.8;
    _useLimitAmt.textAlignment=NSTextAlignmentRight;
    [self addSubview:_useLimitAmt];
    _beginDate=[[UILabel alloc]initWithFrame:CGRectMake(ScreenWidth-220, 105, 190, 12)];
    _beginDate.font=[UIFont boldSystemFontOfSize:9];
    _beginDate.textColor=[UIColor whiteColor];
    _beginDate.alpha=0.5;
    _beginDate.textAlignment=NSTextAlignmentRight;
    [self addSubview:_beginDate];
    UIImageView*dian=[[UIImageView alloc]initWithFrame:CGRectMake(127, 10, 6, 120)];
    dian.image=[UIImage imageNamed:@"youhuiquanxuxian"];
    [self addSubview:dian];
    
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
